<?php
/**
*
* @package shopBB
* @copyright (c) 2008 EXreaction, Lithium Studios
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

if (!defined('IN_PHPBB'))
{
	exit;
}

shop::header('SHOPBB_INDEX');

$item = utf8_normalize_nfc(request_var('item', '', true));

// Get some items to list
$item_ids = shop::get_items(array(
	'item'			=> $item,

	'start'			=> request_var('start', 0),
	'limit'			=> request_var('limit', 10),
));

foreach ($item_ids as $item_id)
{
	$template->assign_block_vars('items', shop::prepare_item($item_id));
}

$template->assign_vars(array(
	'U_ADD_ITEM'	=> shop::build_url(array('page' => 'item', 'mode' => 'add')),
));

shop::set_template('shop_body');

?>